<?php

/*
 * Designed by 钦州市金星科技有限公司
 * Homepage：www.kingsvn.com
 */

$array_system = array(
    'DB_FIELDS_CACHE' => !APP_DEBUG, // 启用字段缓存
    'TMPL_CACHE_ON' => !APP_DEBUG,
    'DEFAULT_FILTER' => 'strip_tags', //全局的过滤方法
    'URL_CASE_INSENSITIVE' => true, //URL不区分大小写
    'URL_HTML_SUFFIX'       =>  '',
    'MODULE_ALLOW_LIST' => array('Index', 'Admin', 'Enterprise', 'User'), //可访问模块
    'DEFAULT_MODULE' => 'Index', //默认模块
    //开启TRACE
    'SHOW_PAGE_TRACE' => APP_DEBUG,
);

$dir = RUNTIME_PATH . "../config/";
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            $type = filetype($dir . $file);
            if ($type == "file") {
                $array_extend = (array) require_once($dir . $file);
                if ($array_extend) {
                    $array_system = array_merge($array_system, $array_extend);
                }
            }
        }
        closedir($dh);
    }
}

return $array_system;




